<div class="blog-masthead">
    <div class="container">
        <nav class="nav blog-nav">
            <a class="nav-link active" href="#">Home</a>
            <a class="nav-link" href="#">New features</a>
            <a class="nav-link" href="#">Press</a>
            <a class="nav-link" href="#">New Hires</a>
            <a class="nav-link" href="#">About</a>

            <ul class="nav nav-tabs ml-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">setting</a>
                    <div class="dropdown-menu">
                        @if (\Illuminate\Support\Facades\Auth::check())
                            <a class="dropdown-item" href="#">{{\Illuminate\Support\Facades\Auth::user()->name }}</a>
                            <a class="dropdown-item" href="/logout">logout</a>
                            @if(is_null(\Illuminate\Support\Facades\Auth::user()->activations || \Illuminate\Support\Facades\Auth::user()->activations==0))
                                <a class="dropdown-item" href="/sendActiveMail">Active!</a>
                            @else
                                <a class="dropdown-item" href="/sendActiveMail">Active!</a>
                            @endif
                        @else
                            <a class="dropdown-item" href="/login">login</a>
                            <a class="dropdown-item" href="/register">register</a>
                        @endif
                    </div>
                </li>
            </ul>

        </nav>
    </div>
</div>
<script type="text/javascript">
    $(".dropdown-toggle").dropdown();
</script>